package cn.git.agent.controller;

import cn.git.agent.entity.UserInfo;
import cn.git.agent.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: 用户信息controller
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-12-20
 */
@RestController
@RequestMapping("/userInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @GetMapping("/list/{userName}")
    public List<UserInfo> selectUserInfoList(@PathVariable(value = "userName") String userName) {
        return userInfoService.selectUserInfoList(userName);
    }

}
